﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Lon.Server
{
    class DbmHelper
    {
        internal static string IdToDbm(int id)
        {
            StringBuilder sb = new StringBuilder();
            for (int i = 0; i <  3; i++)
            {
                char c = (char)(id&0xff);
                id >>= 8;
                sb.Append(c);
            }
            return sb.ToString();
        }
    }
}
